﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ListenMusic.User_Comment_ServiceReference;
using System.ServiceModel;
namespace ListenMusic.Models.Reposistory.User
{
    public class User_CommentReposistory
    {
        public bool PostComment(Comment comment)
        {
            CommentServiceClient commentClient = new CommentServiceClient();
            try
            {   
                commentClient.ClientCredentials.UserName.UserName = "ClientUser";
                commentClient.ClientCredentials.UserName.Password = "123456";
                return commentClient.InsertComment(comment);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

    }
}